package com.todo.sight.infrastructure.helper.es.entity;

import com.todo.component.es.entity.BaseESEntity;
import lombok.Data;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexName;
import org.dromara.easyes.annotation.Settings;
import org.dromara.easyes.annotation.rely.FieldType;

/**
 * @author azhebuxing
 * @date 2024/12/6 21:14
 * @description
 */
@Data
@Settings(shardsNum = 3, replicasNum = 2)
@IndexName(value = "sight_detail")
public class SightDetailEntity extends BaseESEntity {

    /**
     * 标题
     */
    @IndexField(fieldType = FieldType.TEXT)
    private String title;
    /**
     * 宣传口号
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String slogan;
    /**
     * poi
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private Long poiId;
    /**
     * 省份
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String province;
    /**
     * 城市
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String city;
    /**
     * 评分
     */
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer score;
    /**
     * 热度
     */
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer hot;
    /**
     * 详细地址
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String address;
    /**
     * 主图
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String mainImg;
    /**
     * 是否展示
     */
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer isShow;
    /**
     * 是否营业
     */
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer isOpen;
    /**
     * 景点详情描述
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String desc;
    /**
     * 开放时间
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String openTime;
}
